package com.ruoyi.project.websiteContentTitle.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.framework.aspectj.lang.annotation.Excel;
import com.ruoyi.framework.web.domain.TreeEntity;
import org.apache.ibatis.type.Alias;

/**
 * 网站首页展示目录对象 website_title
 * 
 * @author ruoyi
 * @date 2020-08-03
 */
@Alias("websiteTitle")
public class WebsiteTitle extends TreeEntity
{
    private static final long serialVersionUID = 1L;

    /** 网站展示目录id */
    private Long titleId;

    /** 网站展示目录名 */
    @Excel(name = "网站展示目录名")
    private String titleName;

    /** 是否展示(1.展示2.隐藏3.默认展示，不可操作) */
    @Excel(name = "是否展示(1.展示2.隐藏3.默认展示，不可操作)")
    private Long ifShow;

    /** 是否有二级标题(1.有2.没有) */
    @Excel(name = "是否有二级标题(1.有2.没有)")
    private Long isTwoleveltitle;

    /** 父级标题id */
    @Excel(name = "父级标题id")
    private Long parentId;

    /**
     * 父级标题名称
     */
    private String parentName;

    /**
     * 标题排序
     */
    private Integer sortOrder;

    public void setTitleId(Long titleId) 
    {
        this.titleId = titleId;
    }

    public Long getTitleId() 
    {
        return titleId;
    }
    public void setTitleName(String titleName) 
    {
        this.titleName = titleName;
    }

    public String getTitleName() 
    {
        return titleName;
    }
    public void setIfShow(Long ifShow) 
    {
        this.ifShow = ifShow;
    }

    public Long getIfShow() 
    {
        return ifShow;
    }
    public void setIsTwoleveltitle(Long isTwoleveltitle) 
    {
        this.isTwoleveltitle = isTwoleveltitle;
    }

    public Long getIsTwoleveltitle() 
    {
        return isTwoleveltitle;
    }

    @Override
    public Long getParentId() {
        return parentId;
    }

    @Override
    public void setParentId(Long parentId) {
        this.parentId = parentId;
    }

    @Override
    public String getParentName() {
        return parentName;
    }

    @Override
    public void setParentName(String parentName) {
        this.parentName = parentName;
    }

    public Integer getSortOrder() {
        return sortOrder;
    }

    public void setSortOrder(Integer sortOrder) {
        this.sortOrder = sortOrder;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("titleId", getTitleId())
            .append("titleName", getTitleName())
            .append("ifShow", getIfShow())
            .append("isTwoleveltitle", getIsTwoleveltitle())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .append("parentId", getParentId())
            .toString();
    }
}
